﻿//-----------------------------------------------------------------------
// <copyright file="EditorCommandIDs.cs" company="Nathan Miller">
// Copyright (c) Nathan Miller.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
// 
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </copyright>
//-----------------------------------------------------------------------
namespace TileTool.Editor.Command
{
    /// <summary>
    /// Common commands used by the editor.
    /// </summary>
    public static class EditorCommandIds
    {
        #region Undo / Redo commands

        /// <summary>
        /// Undo command ID.
        /// </summary>
        public static readonly CommandId UndoCommand = CommandId.Create("TT-Undo");

        /// <summary>
        /// Redo command ID.
        /// </summary>
        public static readonly CommandId RedoCommand = CommandId.Create("TT-Redo");

        #endregion

        #region Transform command ids

        /// <summary>
        /// Toggle snap to grid command ID.
        /// </summary>
        public static readonly CommandId ToggleSnapToGridCommand = CommandId.Create("TT-ToggleSnapToGrid");

        /// <summary>
        /// Set the current coordinate system command ID.
        /// 
        /// Command is expected to have a single parameter of the type CoordinateSystem which tells
        /// the editor the new coordinate system.
        /// </summary>
        public static readonly CommandId SetCoordinateSystemCommand = CommandId.Create("TT-SetCoordinateSystem");

        /// <summary>
        /// Toggle translate snap.
        /// </summary>
        public static readonly CommandId ToggleTranslateSnapCommand = CommandId.Create("TT-ToggleTranslateSnap");

        /// <summary>
        /// Toggle rotate snap.
        /// </summary>
        public static readonly CommandId ToggleRotateSnapCommand = CommandId.Create("TT-ToggleRotateSnap");

        #endregion

        #region Cut / Copy / Paste commands

        /// <summary>
        /// Cut command ID.
        /// </summary>
        public static readonly CommandId CutCommand = CommandId.Create("TT-Cut");

        /// <summary>
        /// Copy command ID.
        /// </summary>
        public static readonly CommandId CopyCommand = CommandId.Create("TT-Copy");

        /// <summary>
        /// Paste command ID.
        /// </summary>
        public static readonly CommandId PasteCommand = CommandId.Create("TT-Paste");

        #endregion

        #region Groupd commands

        /// <summary>
        /// Create group command ID.
        /// </summary>
        public static readonly CommandId CreateGroupCommand = CommandId.Create("TT-CreateGroup");

        /// <summary>
        /// Destroy group command ID.
        /// </summary>
        public static readonly CommandId DestroyGroupCommand = CommandId.Create("TT-DestroyGroup");

        /// <summary>
        /// Add to group command ID.
        /// </summary>
        public static readonly CommandId AddToGroupCommand = CommandId.Create("TT-AddToGroup");

        /// <summary>
        /// Remove from group command ID.
        /// </summary>
        public static readonly CommandId RemoveFromGroupCommand = CommandId.Create("TT-RemoveFromGroup");

        /// <summary>
        /// Toggle group open command ID.
        /// </summary>
        public static readonly CommandId ToggleGroupOpenCloseCommand = CommandId.Create("TT-ToggleOpenCLoseGroup");

        #endregion
    }
}
